Timer.diff   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
1
import { formatTime } from '../utils/formatters';
2
import Counter from './Counter';
3
4
export default class Timer extends Counter {
5
    bench() {
6
        return new Date();
7
    }
8
9
    static prettify(data) {
10
        return formatTime(data);
11
    }
12
13
    diff(start, end) {
14
        return end - start;
15
    }
16
}
17